// kX Driver / kX Driver Interface / kX Driver Effects Library
// Copyright (c) Eugene Gavrilov, Soeren Bovbjerg 2001-2005.
// All rights reserved

/*
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

// 10kX microcode
// Patch name: 'EQ_Bandpass'

char *EQ_Bandpass_copyright="(c) Soeren Bovbjerg, 2002-2004";
char *EQ_Bandpass_engine="kX";
char *EQ_Bandpass_comment="Bandpass Filter";
char *EQ_Bandpass_created="2002/05/14";
char *EQ_Bandpass_guid="6dc235cf-4155-4885-b010-5a91ef76a249";

char *EQ_Bandpass_name="EQ Bandpass";
int EQ_Bandpass_itramsize=0,EQ_Bandpass_xtramsize=0;

#define R_B0	0x8002
#define R_B1	0x8003
#define R_B2	0x8004
#define R_A1	0x8005
#define R_A2	0x8006

dsp_register_info EQ_Bandpass_info[]={
	{ "inl",0x4000,0x7,0xffff,0x0 },
	{ "inr",0x4001,0x7,0xffff,0x0 },
	{ "outl",0x8000,0x8,0xffff,0x0 },
	{ "outr",0x8001,0x8,0xffff,0x0 },
	{ "b0",0x8002,0x1,0xffff,0x406a4440 },
	{ "b1",0x8003,0x1,0xffff,0x845c896e },
	{ "b2",0x8004,0x1,0xffff,0x3f95bbbe },
	{ "a1",0x8005,0x1,0xffff,0x7ba37691 },
	{ "a2",0x8006,0x1,0xffff,0xc1a7b0b4 },
	{ "sca",0x8007,0x1,0xffff,0x2 },
	{ "lx1",0x8008,0x1,0xffff,0x0 },
	{ "lx2",0x8009,0x1,0xffff,0x0 },
	{ "ly1",0x800a,0x1,0xffff,0x0 },
	{ "ly2",0x800b,0x1,0xffff,0x0 },
	{ "rx1",0x800c,0x1,0xffff,0x0 },
	{ "rx2",0x800d,0x1,0xffff,0x0 },
	{ "ry1",0x800e,0x1,0xffff,0x0 },
	{ "ry2",0x800f,0x1,0xffff,0x0 },
	{ "t1",0x8010,0x3,0xffff,0x0 },
	{ "t2",0x8011,0x3,0xffff,0x0 },
};

dsp_code EQ_Bandpass_code[]={
	{ 0x0,0x2040,0x2040,0x2040,0x2040 },
	{ 0x7,0x8009,0x8008,0x8009,0x8004 },
	{ 0x7,0x8008,0x4000,0x8008,0x8003 },
	{ 0x7,0x8010,0x8010,0x4000,0x8002 },
	{ 0x7,0x800b,0x800a,0x800b,0x8006 },
	{ 0x7,0x8010,0x8010,0x800a,0x8005 },
	{ 0x0,0x8011,0x2056,0x2040,0x2040 },
	{ 0x4,0x800a,0x2040,0x8011,0x8007 },
	{ 0x0,0x8000,0x800a,0x2040,0x2040 },
	{ 0x0,0x2040,0x2040,0x2040,0x2040 },
	{ 0x7,0x800d,0x800c,0x800d,0x8004 },
	{ 0x7,0x800c,0x4001,0x800c,0x8003 },
	{ 0x7,0x8010,0x8010,0x4001,0x8002 },
	{ 0x7,0x800f,0x800e,0x800f,0x8006 },
	{ 0x7,0x8010,0x8010,0x800e,0x8005 },
	{ 0x0,0x8011,0x2056,0x2040,0x2040 },
	{ 0x4,0x800e,0x2040,0x8011,0x8007 },
	{ 0x0,0x8001,0x800e,0x2040,0x2040 },
};
